package com.warren.test;

import lombok.Data;

import java.util.Objects;

/**
 * @version V1.0
 * @Description:
 * @author: warren
 * @date: 2022/7/25$ 16:45$
 */
@Data
public class Generic<T> {
    public T t;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Generic<?> generic = (Generic<?>) o;
        return Objects.equals(t, generic.t);
    }

    @Override
    public int hashCode() {
        return Objects.hash(t);
    }

    @Override
    public String toString() {
        return "Generic{" +
                "t=" + t +
                '}';
    }
}
